home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 July & August
/
PCWorld_2006-07-08_cd.bin
/
v cisle
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Time on Page.sd
< prev
next >
Wrap
INI File
|
2004-06-28
|
731b
|
41 lines
[SUBJECT]
Description=Show the time user have been viewing the page!
ImageIndex=-1
Folder=Tools
[HEAD_TEXT]
;<script language="Javascript">
;<!-- Begin
;pageOpen = new Date();
;function bye() {
;pageClose = new Date();
;minutes = (pageClose.getMinutes() - pageOpen.getMinutes());
;seconds = (pageClose.getSeconds() - pageOpen.getSeconds());
;time = (seconds + (minutes * 60));
;if (time == 1) {
;time = (time + " second");
;}
;else {
;time = (time + " seconds");
; }
;alert('`label_before` ' + time + ' `label_after`');
;}
;// End -->
;</script>
;
[BODY_TAG]
;OnUnload="bye()"
[`label_before`]
Kind=S
Value=It has been
[`label_after`]
Kind=S
Value=Please stay longer next time!